/*
 *
 *      Copyright (c) 2018-2025, secureplat All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the pig4cloud.com developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: secureplat
 *
 */

package com.iwomy.secureplat.admin.api.vo;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 单位管理
 * </p>
 *
 * @author secureplat
 * @since 2018-01-22
 */
@Data
@Schema(description = "单位")
public class SysDeptVO extends Model<SysDeptVO> {

	@TableId(value = "dept_id", type = IdType.ASSIGN_ID)
	@Schema(description = "单位id")
	private Long deptId;

	@Schema(description = "单位名称")
	private String name;


	/**
	 * 配置方式(10配送；20代付)
	 */
	@Schema(description="配置方式(10配送；20代付)")
	private Integer deliveryMethod;

	/**
	 * 排序
	 */
	@NotNull(message = "排序值不能为空")
	@Schema(description = "排序值")
	private Integer sortOrder;

	/**
	 * 修改时间
	 */
	@Schema(description = "修改时间")
	@TableField(fill = FieldFill.UPDATE)
	private LocalDateTime updateTime;

	/**
	 * 父级单位id
	 */
	@Schema(description = "父级单位id")
	private Long parentId;

	/**
	 * 租户id
	 */
	@Schema(description = "租户id")
	private Long tenantId;


	/**
	 * 平台费年限
	 */
	@Schema(description="平台费年限")
	private Integer platformFeeYears;

	/**
	 * 短信剩余（条）
	 */
	@Schema(description="短信剩余（条）")
	private Integer smsRemainNum;

	/**
	 * 语音剩余（分钟）
	 */
	@Schema(description="语音剩余（分钟）")
	private Integer ttsRemainNum;

	/**
	 * 设备剩余（台）
	 */
	@Schema(description="设备剩余（台）")
	private Integer deviceRemainNum;

	/**
	 * 短信总限限
	 */
	@Schema(description="短信总限限")
	private Integer smsTotalLimit;

	/**
	 * 短信日限
	 */
	@Schema(description="短信日限")
	private Integer smsSumDay;

	/**
	 * 短信月限
	 */
	@Schema(description="短信月限")
	private Integer smsSumMonth;

	/**
	 * 语音日限
	 */
	@Schema(description="语音日限")
	private Integer ttsSumDay;

	/**
	 * 语音总限限
	 */
	@Schema(description="语音总限限")
	private Integer ttsTotalLimit;

	/**
	 * 语音月限
	 */
	@Schema(description="语音月限")
	private Integer ttsSumMonth;

	/**
	 * 平台到期时间
	 */
	@Schema(description="平台到期时间")
	private LocalDateTime platformExpireDate;

	/**
	 * 短信代付到期时间
	 */
	@Schema(description="短信代付到期时间")
	private LocalDateTime smsExpirationDate;

	/**
	 * 语音代付到期时间
	 */
	@Schema(description="语音代付到期时间")
	private LocalDateTime ttsExpirationDate;

	private List<SysDeptVO> children; // 子部门列表

	/**
	 * 代付方式（10 语音和语音代付；20 短信代付；30 语音代付）
	 */
	@Schema(description="代付方式（10 语音和语音代付；20 短信代付；30 语音代付）")
	private Integer paymentType;
}
